package com.yh.patterns.factory.factory_method.factory_method_Car;

/**
 * @Auther:云尚学Java
 */
public class TeslaFactory implements CarFactory{

    @Override
    public Car createCar() {
        System.out.println("特斯拉汽车被创建");
        return new Tesla();
    }
}
